<?php
if( !ini_get('safe_mode')){
set_time_limit(0);
}else{
ini_set('max_execution_time',10000);
}
require'connect.php';
require_once 'Http.class.php';
$http = new Http;

$qq = $_GET[qq];
$nr=file('ss.txt');
shuffle($nr);
$_msg=''.$nr['0'].'';
if(!empty($qq)){
$qqselect_sql="select * from qqlist order by rand() limit 2";
$qqselect_result=mysql_query($qqselect_sql);
while($array=mysql_fetch_array($qqselect_result)){
$USER_QQ=$array['qq'];
$USER_SID=$array['sid'];

$postUrl = 'http://blog60.z.qq.com/mmsgb/add_msg.jsp?sid='.$USER_SID.'';
$PostData = 'msg=' . $_msg . '&sign=1&B_UID=' . $qq . '&entry=board&super=0';
$res = $http->RequestSend('POST' , $postUrl , $PostData);
if(preg_match("/留言成功/" , $res)){
    echo '状态:留言成功';
}else{
    echo '状态:留言失败';
}
sleep(1);
}
}
?>